how to determine x and y intercepts